import { http } from "@/utils/http";
const { VITE_PUBLIC_PATH } = import.meta.env;

type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  // return http.request<Result>("get", "/get-async-routes");
  return http.request<Result>("get", `${VITE_PUBLIC_PATH}dataMock_menu.json`);
};
